﻿using FastIOC.Desgin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Test
{
    public class Movie
    {
        public string MovieID;
        public string MovieName { set; get; }

        [InterceptAttibute]
        public virtual void Test()
        {
            Console.WriteLine("电影正在播放");
        }
         [InterceptAttibute]
        public virtual T Test1<T>() where T : ICatch
        {
            Console.WriteLine("电影正在播放");
            ConstructorInfo[] constructors = typeof(T).GetConstructors();
            return (T)constructors[0].Invoke(new Object[] { });
        }

        public void ReadName()
        {
            Console.WriteLine("电影名称：" + MovieName);
        }
    }
}
